package com.example.demo.mybatis.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.demo.mybatis.handler.MybatisTypeHandler;
import lombok.Data;

import java.io.Serializable;
import java.util.Map;

/**
 * @author liyuncong
 * @version 1.0
 * @file TestQueryJson
 * @brief TestQueryJson
 * @details TestQueryJson
 * @date 2022-11-10
 *
 * Edit History
 * ----------------------------------------------------------------------------
 * DATE                        NAME               DESCRIPTION
 * 2022-11-10                  liyuncong          Created
 */
@Data
@TableName(value = "test_query_json", autoResultMap = true)
public class TestQueryJson implements Serializable {

    @TableId
    @TableField("id")
    private Long id;

    @TableField(value = "ext_data", typeHandler = MybatisTypeHandler.class)
    private Map<String, Object> extData;

    @TableField(value = "data_name")
    private String dataName;

}
